const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy:{
      '/api': {
          target: 'http://192.168.97.163:8080',
          ws: true,
          changeOrigin: true,
          pathRewrite: {
            '^/api/start': '/user',
          }
      },
      '/newapi': {
          target: 'http://192.168.97.163:8080',
          ws: true,
          changeOrigin: true,
          pathRewrite: {
            '^/newapi': '',
          }
      }
    }
  }
})
